package com.ruoyi.swla2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.swla2.mapper.DingWeiDaMapper;
import com.ruoyi.swla2.domain.DingWeiDa;
import com.ruoyi.swla2.service.IDingWeiDaService;

/**
 * 定位档案Service业务层处理
 * 
 * @author gdqt
 * @date 2023-12-08
 */
@Service
public class DingWeiDaServiceImpl implements IDingWeiDaService 
{
    @Autowired
    private DingWeiDaMapper dingWeiDaMapper;

    /**
     * 查询定位档案
     * 
     * @param userId 定位档案主键
     * @return 定位档案
     */
    @Override
    public DingWeiDa selectDingWeiDaByUserId(String userId)
    {
        return dingWeiDaMapper.selectDingWeiDaByUserId(userId);
    }

    /**
     * 查询定位档案列表
     * 
     * @param dingWeiDa 定位档案
     * @return 定位档案
     */
    @Override
    public List<DingWeiDa> selectDingWeiDaList(DingWeiDa dingWeiDa)
    {
        return dingWeiDaMapper.selectDingWeiDaList(dingWeiDa);
    }

    /**
     * 新增定位档案
     * 
     * @param dingWeiDa 定位档案
     * @return 结果
     */
    @Override
    public int insertDingWeiDa(DingWeiDa dingWeiDa)
    {
        return dingWeiDaMapper.insertDingWeiDa(dingWeiDa);
    }

    /**
     * 修改定位档案
     * 
     * @param dingWeiDa 定位档案
     * @return 结果
     */
    @Override
    public int updateDingWeiDa(DingWeiDa dingWeiDa)
    {
        return dingWeiDaMapper.updateDingWeiDa(dingWeiDa);
    }

    /**
     * 批量删除定位档案
     * 
     * @param userIds 需要删除的定位档案主键
     * @return 结果
     */
    @Override
    public int deleteDingWeiDaByUserIds(String[] userIds)
    {
        return dingWeiDaMapper.deleteDingWeiDaByUserIds(userIds);
    }

    /**
     * 删除定位档案信息
     * 
     * @param userId 定位档案主键
     * @return 结果
     */
    @Override
    public int deleteDingWeiDaByUserId(String userId)
    {
        return dingWeiDaMapper.deleteDingWeiDaByUserId(userId);
    }
}
